import {service} from "@utils/service"

const commonList = [
    {
        title: "轻提示消息",
        method: function () {
            window['os'].msg("这是一个msg轻提示")
        },
    },
    {
        title: "模拟微信支付",
        method: function () {
            var tem = {
                "appId": "wx6da54cefa81f111e",
                "appid": "wx6da54cefa81f111e",
                "nonceStr": "1702972013876",
                "noncestr": "1702972013876",
                "packageStr": "Sign=WXPay",
                "partnerId": "1613761912",
                "partnerid": "1613761912",
                "payOrderId": "TCWP23121915700003",
                "payOrderType": 1,
                "paySign": "qkpgcLMp9lBHTwr2Ri+zP/bcihOXlJR9DjFPea7+KHMgF0ipJfmBQ2wSVY++Gwv2CzzoH7J4IVoyOleWuRevJcDFrvsUhOmY90h1n7I36LywxHzsKqoN7ojGOX9WL4YsCUHVgEQFQujmAq6JeCzOj0woDkvdwL6rgsbapH+fHTwvSK7YNH50jNouqola6dDyDapLwbzFhggwwvg8MNOG4y3WNmHywYi1eCHL+qawuVQ5XX2k/gKLRgTvb5WfniRkVVtdnAW6/i9JCFO4zQVBEtNDOAg+5TGt24t409dO3TRcw6i/n8WrWxoibhVg5W6lpVJjK5/mPeBptu0kVz3HPQ==",
                "prepayId": "wx191546534711728ba1d652023e794d0000",
                "prepayid": "wx191546534711728ba1d652023e794d0000",
                "sign": "qkpgcLMp9lBHTwr2Ri+zP/bcihOXlJR9DjFPea7+KHMgF0ipJfmBQ2wSVY++Gwv2CzzoH7J4IVoyOleWuRevJcDFrvsUhOmY90h1n7I36LywxHzsKqoN7ojGOX9WL4YsCUHVgEQFQujmAq6JeCzOj0woDkvdwL6rgsbapH+fHTwvSK7YNH50jNouqola6dDyDapLwbzFhggwwvg8MNOG4y3WNmHywYi1eCHL+qawuVQ5XX2k/gKLRgTvb5WfniRkVVtdnAW6/i9JCFO4zQVBEtNDOAg+5TGt24t409dO3TRcw6i/n8WrWxoibhVg5W6lpVJjK5/mPeBptu0kVz3HPQ==",
                "signType": "RSA",
                "timeStamp": "1702972013",
                "timestamp": "1702972013"
            }
            window['os'].pay(1, 1, `${tem['timestamp']},${tem['sign']},${tem['prepayId']},${tem['partnerid']},${tem['appid']},${tem['nonceStr']},${tem['packageStr']}`)
        },
    },
    {
        title: "支付宝支付",
        method: function () {
            window['os'].pay(2, 1, "alipay_root_cert_sn=687b59193f3f462dd5336e5abf83c5d8_02941eef3187dddf3d3b83462e1dfcf6&alipay_sdk=alipay-sdk-java-4.38.221.ALL&app_cert_sn=09c39e2b78aa81aa291d9f7fb470cdbc&app_id=2021004132603055&biz_content=%7B%22body%22%3A%22%E7%BB%84%E5%90%88%E6%94%AF%E4%BB%98%22%2C%22enable_pay_channels%22%3A%22balance%2CmoneyFund%2Cpcredit%2CpcreditpayInstallment%2CcreditCard%2Ccredit_group%2CdebitCardExpress%2Cmcard%2Cpcard%2CbankPay%22%2C%22out_trade_no%22%3A%22TAP24062411100001%22%2C%22product_code%22%3A%22QUICK_MSECURITY_PAY%22%2C%22subject%22%3A%22%E6%9C%8D%E5%8A%A1%E8%B4%B9%E6%94%AF%E4%BB%98%22%2C%22timeout_express%22%3A%2230m%22%2C%22total_amount%22%3A%220.01%22%7D&charset=utf-8&format=json&method=alipay.trade.app.pay&notify_url=https%3A%2F%2Fzctesting.chuq.com.cn%2Fql_pay_api%2Fcallback%2Fpay_callback%2Falipay_pay_ok.htm&sign=tGGqv%2F3%2Br1DPh1MaGit7uZsIJL5b9bdwVFAdO1EQu8%2F%2FpXzN6O3epma8ta9%2FayYxWSWnyp7VORsfidqXVdneD2BpXRPSXerhOlukDnnR5OIkJSttFZs1FEoca7O8qnMvRXijAN5GHOEMfT6Y1LZYFW%2F1pAuf4w0UsVEAnXaGbu9Chue9XghC1gjk3fFzDWx1dr9HHxO95BKoFuDk%2Fw2Cy8SOth2NstmnHNaTD9VYGruq%2B5xdHyZ8cz0WbU6%2FHHACE39IdhBTdx5P1UcCLhYc%2BNQM3sWi14O%2FmtbMq4LtA7xnSp2iM%2BOapFxQDCcC4s%2B9KyE7PFIDEVFWPclVAYIM4A%3D%3D&sign_type=RSA2&timestamp=2024-06-24+11%3A10%3A14&version=1.0")
        },
    },
    {
        title: "基础扫码",
        method: function () {
            window['os'].toBasicScanQrcode(1, "启用相机扫描二维码信息", "ssBasicScan", "abcd")
        },
    },
    {
        title: "基础扫码",
        method: function () {
            window['os'].toBasicScanQrcode(1, "启用相机扫描二维码信息", "abcd")
        },
    },
    {
        title: "加签测试",
        method: function () {
            var url = "/exchange_api/v1/customer/base/cabinet/map_index.htm"
            var p = {
                "areaId": 330110,
                "lng": 120.020083,
                "lat": 30.348047,
                "uAreaId": 330110,
                "uLng": 120.02008,
                "uLat": 30.348047,
                "uAddress": "中国浙江省杭州市余杭区良渚街道纳贤街",
                "batterySkuId": 2,
                "batteryType": 2
            }
            var param = JSON.stringify(p)
            console.log(param)
            var s = window['os'].h5Sign(url, param, "", "")
            console.log("加签后数据", s)

        },
    },
    {
        title: "去登陆",
        method: function () {
            var s = window['os'].toLogin()
        },
    },
    {
        title: "获取token",
        method: function () {
            var s = window['os'].getToken()
            console.log("token:", s)
        },
    },
    {
        title: "获取缓存经纬度",
        method: function () {
            var s = window['os'].getLatLng()
            console.log("getLatLng:", s)
        },
    },
    {
        title: "校验定位信息",
        method: function () {
            window['os'].checkLocation(1, "abcd")
        },
    },
    {
        title: "写入缓存",
        method: function () {
            window['os'].putStringCache("key1", "abc121d")
        },
    },
    {
        title: "读取缓存",
        method: function () {
            var s = window['os'].getStringCache("key1")
            console.log("getStringCache:", s)
        },
    },
    {
        title: "页面跳转",
        method: function () {
            let param = {
                "int1": {"Int": 1},
                "long1": {"Long": 12},
                "float1": {"Float": 0.85},
                "double1": {"Double": 10.1},
                "string1": {"String": "xxxsss"},
                "boolean1": {"Boolean": true},
                "test": {
                    "Object": {
                        "fullname": "李四-来之H5"
                    }
                }
            }
            console.log(JSON.stringify(param))
            window['os'].toPage("/user/SettingActivity", JSON.stringify(param))
        },
    },
    {
        title: "跳转小程序",
        method: function () {
            let param = {
                'type': 'ali',
                'id': '2021004134699236',
                'path': 'pages/home/index',
            }
            console.log(JSON.stringify(param))
            window['os'].toMiniApp(JSON.stringify(param))
        },
    },
    {
        title: "分享",
        method: function () {
            window['os'].wXSceneSession("标题", "描述", "https://www.baidu.com");
        },
    },
    {
        title: "支付分",
        method: function () {
            let param = ""
            window['os'].pay(6, 1, param);
        },
    },
    {
        title: "支付测试",
        method: function () {
            let p = {
                "type": "wx",
                "path": "pagesE/deposit/deposit3?wxScoreParams={\"mch_id\":\"1642716132\",\"package\":\"AAQTnZoAAAABAAAAAAAvUzTUXfpaPFkkc3cMZyAAAABcwQVtru-5k9MmEOZJ_Pv_Nq7Cw56dNKKN5EjZKnt5jXDxL_YkF5P3XqZBCyUu6bLjRZEjN_F6kXV7KsxXVUPH8noCPwGPdpcBEu_rJXJ7ZN8E1eIgyz8S04qk437TBxl65VMxwayzBUOuSA6Jp_OnD8guikDumBNMzkBeN-7BmpOBM0MvVhE5qkBtreb6WylvMGwy3W6a2nsv\",\"timestamp\":\"1728870259\",\"nonce_str\":\"1728870259361\",\"sign_type\":\"HMAC-SHA256\",\"sign\":\"se8+cy31RsNdqT6yv8+NvZ4TKcQXodDi3ZMEAwdC858=\"}&webUrl=/activity_server_h5/zlFreePay&token=203bd32da2db0a4c93ab756a865f1adb1e7a&agentId=24",
                "id": "gh_cc8ef4f9b21a"
            }
            window['os'].toMiniApp(JSON.stringify(p));
        },
    },

];
var businessList = [
    {
        title: "测试是否首页",
        method: function () {
            window['os'].isHome(0)
        },
    },
    {
        title: "模拟换电微信商户支付",
        method: function () {
            var tem = {
                "appId": "wx6da54cefa81f111e",
                "appid": "wx6da54cefa81f111e",
                "nonceStr": "1702972013876",
                "noncestr": "1702972013876",
                "packageStr": "Sign=WXPay",
                "partnerId": "1613761912",
                "partnerid": "1613761912",
                "payOrderId": "TCWP23121915700003",
                "payOrderType": 1,
                "paySign": "qkpgcLMp9lBHTwr2Ri+zP/bcihOXlJR9DjFPea7+KHMgF0ipJfmBQ2wSVY++Gwv2CzzoH7J4IVoyOleWuRevJcDFrvsUhOmY90h1n7I36LywxHzsKqoN7ojGOX9WL4YsCUHVgEQFQujmAq6JeCzOj0woDkvdwL6rgsbapH+fHTwvSK7YNH50jNouqola6dDyDapLwbzFhggwwvg8MNOG4y3WNmHywYi1eCHL+qawuVQ5XX2k/gKLRgTvb5WfniRkVVtdnAW6/i9JCFO4zQVBEtNDOAg+5TGt24t409dO3TRcw6i/n8WrWxoibhVg5W6lpVJjK5/mPeBptu0kVz3HPQ==",
                "prepayId": "wx191546534711728ba1d652023e794d0000",
                "prepayid": "wx191546534711728ba1d652023e794d0000",
                "sign": "qkpgcLMp9lBHTwr2Ri+zP/bcihOXlJR9DjFPea7+KHMgF0ipJfmBQ2wSVY++Gwv2CzzoH7J4IVoyOleWuRevJcDFrvsUhOmY90h1n7I36LywxHzsKqoN7ojGOX9WL4YsCUHVgEQFQujmAq6JeCzOj0woDkvdwL6rgsbapH+fHTwvSK7YNH50jNouqola6dDyDapLwbzFhggwwvg8MNOG4y3WNmHywYi1eCHL+qawuVQ5XX2k/gKLRgTvb5WfniRkVVtdnAW6/i9JCFO4zQVBEtNDOAg+5TGt24t409dO3TRcw6i/n8WrWxoibhVg5W6lpVJjK5/mPeBptu0kVz3HPQ==",
                "signType": "RSA",
                "timeStamp": "1702972013",
                "timestamp": "1702972013"
            }
            window['os'].pay(1, 1, `${tem['timestamp']},${tem['sign']},${tem['prepayId']},${tem['partnerid']},${tem['appid']},${tem['nonceStr']},${tem['packageStr']}`);
        },
    },
    {
        title: "微信支付",
        method: function () {
            var tem = {
                "appId": "wxd299f9708edbb55e",
                "appid": "wxd299f9708edbb55e",
                "nonceStr": "1704721845980",
                "noncestr": "1704721845980",
                "packageStr": "Sign=WXPay",
                "partnerId": "1665364005",
                "partnerid": "1665364005",
                "payOrderId": "TCWP24010821800001",
                "payOrderType": 1,
                "paySign": "F9B1AEBFD6179556DF0A08ABFFDBCF3D",
                "prepayId": "wx082150438288208d16a6b91caa40f80000",
                "prepayid": "wx082150438288208d16a6b91caa40f80000",
                "sign": "F9B1AEBFD6179556DF0A08ABFFDBCF3D",
                "signType": "MD5",
                "sourceId": "FO1704721844663",
                "sourceType": 2,
                "timeStamp": "1704721845",
                "timestamp": "1704721845"
            }
            window['os'].pay(1, 1, `${tem['timestamp']},${tem['sign']},${tem['prepayId']},${tem['partnerid']},${tem['appid']},${tem['nonceStr']},${tem['packageStr']}`);
        },
    },
    {
        title: "支付宝支付11",
        method: function () {
            window['os'].pay(2, 1, "alipay_root_cert_sn=687b59193f3f462dd5336e5abf83c5d8_02941eef3187dddf3d3b83462e1dfcf6&alipay_sdk=alipay-sdk-java-4.38.221.ALL&app_cert_sn=c3900b59a105d549e79ebad08a63a902&app_id=2018121162512441&biz_content=%7B%22access_params%22%3A%7B%22channel%22%3A%22ALIPAYAPP%22%7D%2C%22external_agreement_no%22%3A%22AS2408130000000244%22%2C%22period_rule_params%22%3A%7B%22execute_time%22%3A%222024-09-12%22%2C%22period%22%3A30%2C%22period_type%22%3A%22DAY%22%2C%22single_amount%22%3A%220.05%22%7D%2C%22personal_product_code%22%3A%22CYCLE_PAY_AUTH_P%22%2C%22sign_scene%22%3A%22INDUSTRY%7CCARRENTAL%22%7D&charset=utf-8&format=json&method=alipay.user.agreement.page.sign&notify_url=https%3A%2F%2Fcsapi.yugu.net.cn%2Fhd_pay_api%2Fcallback%2Fpay_callback%2Fagreement_change_back.htm&sign=bd%2FE98wU%2BGGZ39Z1V2V6v5ynWbvr%2B%2BWOf%2FRMONyujfKAiuMbRkaf%2Fm5%2FcnE5liUdh1N1jA2BZLG6t%2BTXAEVGjPLLiSzJl5F9jV%2F%2BsH3IXrYPXJc71SLB%2B%2B%2BhYd9mSSTJlNty9C8sorq8aVddnvrm1S2g6wdt%2FmSEThBw4WSi1%2B35EST7GjOH9mxpRIy%2BcFzYCwPpbdsko5CxyjPmdXXLlVvoRc%2BkKLOsiL2kZr8fxEom70bHvyqVl0Q09h3Nsv8STnLHyKcA7Sdwt0SZAopDny%2FzYDMkiHv38qxhxXvx8vKGFFDJWmX07fpxBU882OXTZrgfVtH04NVftMsV20jdlA%3D%3D&sign_type=RSA2&timestamp=2024-08-13+11%3A22%3A34&version=1.0")
        },
    },
    {
        title: "详情测试加签",
        method: function () {
            var url = "/exchange_api/v1/customer/base/cabinet/map_index.htm"
            var p = {
                "areaId": 330110,
                "lng": 120.020083,
                "lat": 30.348047,
                "uAreaId": 330110,
                "uLng": 120.02008,
                "uLat": 30.348047,
                "uAddress": "中国浙江省杭州市余杭区良渚街道纳贤街",
                "batterySkuId": 2,
                "batteryType": 2
            }
            var param = JSON.stringify(p)
            var s = window['os'].h5SignV2(url, param, "", "")
            service.post(s, param).then(function (res) {
                console.log("详情测试加签:", res)
            })
        },
    },
    {
        title: "测试加签",
        method: function () {
            var url = "/exchange_api/v1/customer/base/cabinet/detail.htm"
            var param = `{}`
            console.log("加签参数:", window['os'].h5SignV2(url, param, "", ""))
            console.log("加签参数:", window['os'].h5SignV2(url, "", "", ""))
            // console.log("加签参数:",window['os'].h5SignV2(url,param,"",""))
        },
    },
    {
        title: "测试定位",
        method: function () {
            window['os'].checkLocation(1, "abcd")
        },
    },
    {
        title: "打开gps",
        method: function () {
            window['os'].openGps(1, 1)
        },
    },
    {
        title: "测试权限是否拥有",
        method: function () {
            window['os'].checkPermission(1, 2, "abcd")
        },
    },
    {
        title: "测试权限",
        method: function () {
            window['os'].runWithPermission(1, 1, "cccccasasa", "用于扫码,获取二维码信息", "abcd");
        },
    },
    {
        title: "处理成功",
        method: function () {
            window['os'].handleSuccessByType(JSON.stringify({"type": 1}));
        },
    },
    {
        title: "处理成功2",
        method: function () {
            window['os'].handleSuccessByType2({"type": 1});
        },
    },
    {
        title: "扫码测试",
        method: function () {
            window['os'].toBasicScanQrcode(1, "用于扫码获取二维码信息", "abcd");
        },
    },
    {
        title: "分享",
        method: function () {
            window['os'].wXSceneSession("标题", "描述", "https://www.baidu.com");
        },
    },
    {
        title: "保存至本地",
        method: function () {
            window['os'].saveQrcode("");
        },
    },
    {
        title: "实时定位",
        method: function () {
            window['os'].locationLimit(1, "用于试试定位", "abcd");
        },
    },
    {
        title: "首次选择位置",
        method: function () {
            window['os'].toMapGetLocation(1, "获取位置信息", "abcd", "");
        },
    },
    {
        title: "二次选择位置",
        method: function () {
            window['os'].toMapGetLocation(
                1,
                "获取位置信息",
                "abcd",
                '{ "lat":30.375818,"lng":120.040825,"title":"阳光天际"}'
            );
        },
    },
    {
        title: "权限设置",
        method: function () {
            window['os'].toPermissionSetting();
        },
    },
    {
        title: "权限测试",
        method: function () {
            window['os'].runWithPermission(1, 1, "测试一把", "abcd");
        },
    },
    {
        title: "引导登录",
        method: function () {
            window['os'].toLogin();
        },
    },
    {
        title: "地图门店",
        method: function () {
            window['os'].toMapModeShop();
        },
    },
    {
        title: "地图还车",
        method: function () {
            window['os'].toMapModeBackCar();
        },
    },
]

const zcAgentList = [
    {
        title: "车辆管理地图",
        method: function () {
            var data = {
                type: 4,
            }
            window['os'].toZCMap(JSON.stringify(data));
        },
    },
    {
        title: "车辆轨迹地图",
        method: function () {
            var data = {
                type: 2,
                id: "140",
                "sn": "081022824"
            }
            window['os'].toZCMap(JSON.stringify(data));
        },
    },
    {
        title: "电池轨迹",
        method: function () {
            window['os'].toSiteFindBattery("batteryId");
        },
    },
    {
        title: "工单地图",
        method: function () {
            var data = {
                type: 3,
            }
            window['os'].toZCMap(JSON.stringify(data));
        },
    },
    {
        title: "引导账号登录",
        method: function () {
            var data = {
                type: 1,
                accountType: 2,//
            }
            window['os'].zcHandle(JSON.stringify(data));
        },
    },
    {
        title: "租车电池轨迹",
        method: function () {
            var data = {
                type: 2,
                id: "Z2C05995",//
            }
            window['os'].zcHandle(JSON.stringify(data));
        },
    },
    {
        title: "还车点设置",
        method: function () {
            var data = {
                type: 5,
                id: 190
            }
            window['os'].toZCMap(JSON.stringify(data));
        },
    },
    {
        title: "还车点创建",
        method: function () {
            var data = {
                type: 5,
            }
            window['os'].toZCMap(JSON.stringify(data));
        },
    },
    {
        title: "还车区域地图模式",
        method: function () {
            var data = {
                type: 6,
            }
            window['os'].toZCMap(JSON.stringify(data));
        },
    },
    {
        title: "车辆位置-商家版",
        method: function () {
            var data = {
                type: 7,
                id: 310
            }
            window['os'].toZCMap(JSON.stringify(data));
        },
    },
    {
        title: "电池位置-商家版",
        method: function () {
            var data = {
                type: 8,
            }
            window['os'].toZCMap(JSON.stringify(data));
        },
    },
    {
        title: "共享网点-商家版",
        method: function () {
            var data = {
                type: 9,
            }
            window['os'].toZCMap(JSON.stringify(data));
        },
    },
    {
        title: "成本地图",
        method: function () {
            var data = {
                type: 3,
            }
            window['os'].toMap(JSON.stringify(data));
        },
    },
];
const zheLiList = [
    {
        title: "还车地图",
        method: function () {
            var data = {
                type: 1,
            }
            window['os'].toBikeMap(JSON.stringify(data));
        },
    },
    {
        title: "寻车地图",
        method: function () {
            var data = {
                type: 2,
                id: "Zcasasa"
            }
            window['os'].toBikeMap(JSON.stringify(data));
        },
    },
    {
        title: "还车成功",
        method: function () {
            var data = {
                type: 1,
            }
            window['os'].handleBikeSuccess(JSON.stringify(data));
        },
    },
    {
        //原始数据: {"areaId": 330106, "": 120.074777, "type": 1, "title": "宇弘智谷", "lat": 30.250536}
        title: "地图选点",
        method: function () {
            var data = {
                type: 1,
                msg: "用于定位选择点位",
                method: "abcd",
                lat: "30.250536",
                lng: "120.074777",
                title: "12",
            }
            window['os'].toMapGetLocation(JSON.stringify(data));
        },
    },
    {
        title: "开始录音",
        method: function () {
            var data = {
                step: "start",
                title: "请求权限录音",
                msg: "用于获取录音权限",
                method: "abcd",
                key: "test",
            }
            console.log(data);
            window['os'].recordAudios(JSON.stringify(data));
        },
    },
    {
        title: "结束录音",
        method: function () {
            var data = {
                step: "end",
            }
            console.log(data);
            window['os'].recordAudios(JSON.stringify(data));
        },
    },
    {
        title: "结束录音并上传",
        method: function () {
            var data = {
                step: "endUpload",
            }
            console.log(data);
            window['os'].recordAudios(JSON.stringify(data));
        },
    },
    {
        title: "播放",
        method: function () {
            var data = {
                step: "play",
            }
            console.log(data);
            window['os'].recordAudios(JSON.stringify(data));
        },
    },
    {
        title: "测试应急",
        method: function () {
            let data = {
                step: "dialog",
                url: "https://cdn.zhizu.yugu.net.cn/cshd/customerapp/h5/9751/index.html#/activity_server_h5/emergency-full-popup?dialogType=2&msg=60V"
            }
            window['os'].contingencyHandle(JSON.stringify(data));
        },
    }
];
const zlzcMerchant = [
    {
        title: "车辆管理地图",
        method: function () {
            var data = {
                type: 5,
            }
            window['os'].toZlzcMerchantMap(JSON.stringify(data));
        },
    },
    {
        title: "小北车辆管理地图",
        method: function () {
            var data = {
                type: 5,
                mode: "place"
            }
            window['os'].toZlzcMerchantMap(JSON.stringify(data));
        },
    },
    {
        title: "车辆轨迹地图",
        method: function () {
            var data = {
                type: 6,
                id: "140",
                "sn": "081022824"
            }
            window['os'].toZlzcMerchantMap(JSON.stringify(data));
        },
    },
    {
        title: "还车点设置",
        method: function () {
            var data = {
                type: 1,
                id: 85
            }
            window['os'].toZlzcMerchantMap(JSON.stringify(data));
        },
    },
    {
        title: "还车点创建",
        method: function () {
            var data = {
                type: 1,
            }
            window['os'].toZlzcMerchantMap(JSON.stringify(data));
        },
    },
    {
        title: "还车区域地图模式",
        method: function () {
            var data = {
                type: 2,
            }
            window['os'].toZlzcMerchantMap(JSON.stringify(data));
        },
    },
    {
        title: "车辆位置-商家版",
        method: function () {
            var data = {
                type: 3,
                statusType: "place",
                id: 886
            }
            window['os'].toZlzcMerchantMap(JSON.stringify(data));
        },
    },
    {
        title: "共享网点-商家版",
        method: function () {
            var data = {
                type: 4,
            }
            window['os'].toZlzcMerchantMap(JSON.stringify(data));
        },
    },
    {
        title: "共享网点-商家版",
        method: function () {
            var data = {
                type: 4,
            }
            window['os'].toZlzcMerchantMap(JSON.stringify(data));
        },
    },
    {
        title: "权限-商家版",
        method: function () {
            window['os'].runWithPermission(1, 3, "ssMerchantShopRegister11", "拍摄并上传照片,用于商家入驻", "abcd");
        }
    },
];
const ohosList = [
    {
        title: "地图选点",
        method: function () {
            var data = {
                type: 5,
                method: "abcd"
            }
            window['os'].toMapGetLocation(JSON.stringify(data));
        },
    },
    {
        title: "地图已选点",
        method: function () {
            var data = {
                type: 5,
                method: "abcd",
                title: "中国高吸科技有限公司",
                lat: 30.349856,
                lng: 120.02574
            }
            window['os'].toMapGetLocation(JSON.stringify(data));
        },
    },

];
const list = [
    {
        name: "公共方法",
        isShow: false,
        labelColor: '#8470FF',
        list: [
            ...commonList,
            {
                title: "拍照并上传",
                method: function () {
                    let data = {
                        type: "cameraPhoto",
                        cameraFront: 1,
                        cameraMsg: "相机：用于拍摄身份证个人信息面，进行ocr识别完成实名认证",
                        cameraKey: "ssAuth",
                        fileMsg: "文件：用于拍摄照片的存储压缩和读取,进行ocr识别完成实名认证",
                        fileKey: "ssAuthFile",
                        // uploadUrl:"https://hd2.yugu.net.cn/query_api/v1/customer/basic/attachment/upload.htm",
                        // uploadType: 2,
                        method: "abcd"
                    }
                    window['os'].takeOrPickImg(JSON.stringify(data));
                },
            }, {
                title: "水印测试",
                method: function () {
                    window['os'].configWatermarkText("张三,飒飒");
                },
            },
            {
                title: "toOtherApp",
                method: function () {
                    window['os'].toOtherApp("https://www.baidu.com");
                },
            },
            {
                title: "getAppCustomCache",
                method: function () {
                    let m = window['os'].getAppCustomCache();
                    console.log("getAppCustomCache:", m)
                },
            },
            {
                title: "copyTextToClipboard",
                method: function () {
                    let m = window['os'].copyTextToClipboard("xixihaha123");
                    console.log("getAppCustomCache:", m)
                },
            },
            {
                title: "openInBrowser",
                method: function () {
                    let m = window['os'].openInBrowser("https://www.baidu.com");
                    console.log("getAppCustomCache:", m)
                },
            },
            {
                title: "putStringCache",
                method: function () {
                    let str = `doSomething:${new Date().getTime()}`
                    let m = window['os'].putStringCache("h5Test", str);
                    console.log("putStringCache:", m, str)
                },
            },
            {
                title: "getStringCache",
                method: function () {
                    let m = window['os'].getStringCache("h5Test");
                    console.log("getStringCache:", m)
                },
            },
            {
                title: "toPageWithParams",
                method: function () {
                    let m = window['os'].toPageWithParams("/site/batteryTrajectoryActivity", JSON.stringify({"id": {String: "1"}, isZc: {Int: 1}}), false);
                    console.log("toPageWithParams:", m)
                },
            }
        ]
    },
    {
        name: "这锂租车-商家测试",
        isShow: false,
        labelColor: '#FF6A6A',
        list: [...zlzcMerchant
        ]
    },
    {
        name: "租车运维端",
        isShow: true,
        labelColor: '#8470FF',
        list: [...zcAgentList,
            {
                title: "车辆位置-运维",
                method: function () {
                    var data = {
                        type: 1,
                        id: 1
                    }
                    window['os'].toZCMap(JSON.stringify(data));
                },
            },
            {
                title: "车辆位置-运维",
                method: function () {
                    var data = {
                        type: 3,
                    }
                    window['os'].toZCMap(JSON.stringify(data));
                },
            },
            {
                title: "车辆运维",
                method: function () {
                    var data = {
                        type: 8,
                    }
                    window['os'].toZlzcMerchantMap(JSON.stringify(data));
                },
            },
        ]
    },
    {
        name: "换电APP",
        isShow: false,
        labelColor: '#8470FF',
        list: [
            ...zheLiList
        ]
    }, {
        name: "鸿蒙测试",
        isShow: false,
        labelColor: '#8470FF',
        list: [
            ...ohosList
        ]
    },
];
export default list




